package com.zzw.testdemo01.registry;

import com.zzw.testdemo01.IdUtils;
import com.zzw.testdemo01.block.BlockOne;
import net.minecraft.block.Block;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class BlockRegistry {
    public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, IdUtils.MOD_ID);

    public static final RegistryObject<Block> BLOCKONE = BLOCKS.register("block1", () -> new BlockOne());

    public static void main(String[] args) {
        Block block = BLOCKONE.get();

    }

}
